<section class="widget post-right-item">
    <h4 class="post-right-title">热门推荐</h4>
    <ul class="post-hot clearfix">
        {% for article in most_views_articles %}
            <li>
                <div class="img">
                    <a href="{% url 'index' %}show-{{ article.id }}.html"
                       title="{{ article.title }}">
                        {% if  article.img %}
                            <img src="media/{{ article.img }}"
                                 srcset="media/{{ article.img }}"
                                 alt="" class="wp-post-image" width="120"
                                 height="80"/>
                        {% else %}
                            <img src="https://t1.hddhhn.com/uploads/tu/201903/17/1.jpg"
                                 srcset="https://t1.hddhhn.com/uploads/tu/201903/17/1.jpg"
                                 alt="" class="wp-post-image" width="120"
                                 height="80"/>
                        {% endif %}

                    </a>
                </div>
                <a href="{% url 'index' %}show-{{ article.id }}.html"
                   title="{{ article.title }}"
                   target="_blank" class="title">
                    {{ article.title }}
                </a>
            </li>

        {% empty %}
            <li>
                <div class="img">

                    <a href="/show-1.html"
                       title="W3C启动Web支付标准工作，推进在线结算流程"><img
                            src="static/picture/next-1.png"
                            srcset="media/article_img/2018/10/07/next-1.png"
                            alt="" class="wp-post-image" width="120"
                            height="80"/></a>
                </div>
                <a href="/show-1.html" title="W3C启动Web支付标准工作，推进在线结算流程"
                   target="_blank" class="title">W3C启动Web支付标准工作，推进在线结算流程</a>
            </li>
        {% endfor %}


    </ul>
</section>

</section>
<section class="widget post-right-item"><h4 class="post-right-title">所有标签</h4>
    <div class="tags">
        {% for tag in right_tags %}
            <a href="{% url 'index' %}/tag/{{ tag.name }}">{{ tag.name }}</a>
        {% empty %}
            <a href="/tag/django">django</a>
        {% endfor %}

    </div>
</section>
</section><!-- /关注我们 -->
<div class="post-right-item">
    <h4 class="post-right-title">关注我们</h4>
    <div class="wid-about">
        <p>快报名跟我一起学Python吧！</p>
        <img src="/static/picture/weixinqr.jpg" alt="张大鹏 Python教学导师" width="160" height="160">
    </div>
    <div class="wid-about">
        <p><strong>联系方式:</strong></p>
        <p>QQ:1156956636</p>
        <p>Email：1156956636@qq.com</p>
    </div>
</div>
